package com.mzj.saas.mservice.report.controller;


import com.mzj.saas.commons.ApiData;
import com.mzj.saas.commons.ResultBean;
import com.mzj.saas.mservice.report.service.ReportRepairStatisticsService;
import com.mzj.saas.mservice.report.vo.ReportRepairStatisticsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 首页报修报事统计
 */

@Controller
@RequestMapping("/reportRepairStatistics")
public class ReportRepairStatisticsController {

    @Autowired
    ReportRepairStatisticsService reportRepairStatisticsService;

    /**
     * 列表
     * @param accessToken 验证令牌
     * @param pageNumber 起始数据
     * @param pageSize 页面大小
     * @param vo
     * @return
     */
    @GetMapping("/pages")
    @ResponseBody
    public ResultBean<ApiData<ReportRepairStatisticsVO>> pages(@RequestHeader String accessToken,
                                                               @RequestParam(defaultValue = "0") Integer pageNumber,
                                                               @RequestParam(defaultValue = "10") Integer pageSize,
                                                               ReportRepairStatisticsVO vo) {
        return reportRepairStatisticsService.pages(accessToken, pageNumber, pageSize, vo);
    }


}
